import Missile
import pygame

image1=pygame.image.load("throwingaxe.bmp")
image1.set_colorkey((255,0,255))

class ThrowingAxe(Missile.Missile):
	def __init__(self,x=0,y=0,mass=0.6,image=image1):
		Missile.Missile.__init__(self,x=x,y=y,mass=mass,image=image)
	def damageDealt(self,other):
		p=70+0.06*self.getImpulse()
		print "axe!",p
		other.physicalDamageTaken(p)
	def bumping(self):
		return False
	def hitResult(self):
		self.cur_room.projectilesList.remove(self)
	def canClimb(self,it):
		return True
	def isAlive(self):
		return True
	def drawingInformation(self):
		if self.cur_room and not (self in self.cur_room.collectablesList) and self.x_bound or self.y_bound:
			return (self.x-0.5*self.getWidth(),self.y+self.getHeight()),self.image
		return Missile.Missile.drawingInformation(self)